/*

* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Smart-Shop开源商城系统/ Java商城-首选电商平台系统 请务必保留此注释头信息
* |     开源地址: https://gitee.com/ningbo-qishan/gruul-mall
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     可正常分享和学习源码,未经授权 不可商用！
* |     商业版中台购买/开源版商业授权 联系技术客服
* |     官网:  https://www.73app.cn/
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Copyright (c) 2016-2999 宁波启山智软科技有限公司
* |     版权所有 ,侵权必究！
* ------------------------------------------------------------------------

*/
package com.medusa.gruul.platform.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.medusa.gruul.common.data.base.BaseNoTenantEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 代理商推送消息表结构
 * </p>
 *
 * @author whh
 * @since 2020-10-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_agent_notice")
@ApiModel(value = "AgentNotice对象", description = "代理商推送消息表结构")
public class AgentNotice extends BaseNoTenantEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * t_agent_info 表中id
     */
    @ApiModelProperty(value = "t_agent_info 表中id")
    @TableField("agent_info_id")
    private Long agentInfoId;

    /**
     * 标题
     */
    @ApiModelProperty(value = "标题")
    @TableField("title")
    private String title;

    /**
     * 消息内容
     */
    @ApiModelProperty(value = "消息内容")
    @TableField("content")
    private String content;

    /**
     * 分类：以枚举类AgentNoticeEnum为准  com.medusa.gruul.platform.constant.AgentNoticeEnum
     */
    @ApiModelProperty(value = "消息分类：以枚举类AgentNoticeEnum为准")
    @TableField("type")
    private Integer type;

    /**
     * 是否已读
     * 0:未读
     * 1:已读
     */
    @ApiModelProperty(value = "是否已读 0:未读 1:已读")
    @TableField("is_read")
    private Integer isRead;

    @ApiModelProperty(value = "消息类型  1-产品消息 2-财务消息")
    @TableField("msg_type")
    private Integer msgType;
}
